//package com.applet.controller;
//
//import com.applet.form.common.I18mParams;
//import com.applet.service.i18n.I18nMsgService;
//import Constant;
//import ResultResponse;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.annotations.ApiParam;
//import org.springframework.util.StringUtils;
//import org.springframework.web.bind.annotation.*;
//
//import javax.annotation.Resource;
//
//@RestController
//@RequestMapping("/v1/api/common")
//@Api(value = "公共接口", description = "公共接口", tags = {"公共接口"})
//public class CommonController {
//
//    @Resource
//    private I18nMsgService i18nMsgService;
//
//    @RequestMapping(value = "/i18n", method = RequestMethod.POST)
//    @ApiOperation(value = "查询国际化信息", httpMethod = "POST", response = ResultResponse.class, notes = "查询国际化信息")
//    public ResultResponse i18n(@RequestBody @ApiParam(required = true, name = "i18mParams", value = "国际化查询信息") I18mParams i18mParams) {
//        String msg = i18nMsgService.getMsg(i18mParams.getCode(), i18mParams.getLang());
//        ResultResponse resultResponse = new ResultResponse(true, "");
//        if (StringUtils.isEmpty(msg)) {
//            resultResponse.setData("System error");
//            return resultResponse;
//        }
//        resultResponse.setData(msg);
//        return resultResponse;
//    }
//}
